package com.hirsi.module.auth.vo.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@ApiModel("登录令牌返回")
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class TokenResult {

    @ApiModelProperty("访问令牌")
    private String accessToken;

    @ApiModelProperty(value = "访问令牌过期时间(毫秒时间戳)", position = 1)
    private Long accessExpire;

    @ApiModelProperty(value = "刷新令牌", position = 2)
    private String refreshToken;

    @ApiModelProperty(value = "刷新令牌过期时间(毫秒时间戳)", position = 3)
    private Long refreshExpire;

    @ApiModelProperty(value = "登录用户id", position = 4)
    private Integer userId;
}
